package com.lx.zy.project.system.service.impl;

import com.lx.zy.project.system.domain.SysPost;
import com.lx.zy.project.system.mapper.SysPostMapper;
import com.lx.zy.project.system.service.ISysPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: zy-vue
 * @description: 岗位信息 服务层处理
 * @author: Lx
 * @create: 2019-11-04 18:20
 **/
@Service
public class SysPostServiceImpl implements ISysPostService
{
    @Autowired
    private SysPostMapper postMapper;

    @Override
    public List<SysPost> selectPostList(SysPost post)
    {
        return postMapper.selectPostList(post);
    }

    /**
     * 根据用户ID获取岗位选择框列表
     *
     * @param userId 用户ID
     * @return 选中岗位ID列表
     */
    @Override
    public List<Integer> selectPostListByUserId(Long userId)
    {
        return postMapper.selectPostListByUserId(userId);
    }
}
